<?php header("Location 404.htm");Die();/*
<code>
//*/
	if(eregi('^:([^!]+)!.*!addtimer (.*)',$GLOBALS['IRC']->GetLastLine(),$tmp))
	{
	  if($GLOBALS['IRC']->GetReplyType() == IRC_Reply_Channel) 
	  {
	    if(eregi('\-\-[ ]?query',$tmp[2]))
	    {
			// adding timer throw query
			$GLOBALS['IRC']->Message($tmp[1],'Adding timer sequence');
			//$GLOBALS['IRC']->Reply('---------------------');
			$GLOBALS['IRC']->Message($tmp[1],'- in all time you can use .help for help or .stop for termination adding sequence');
			$GLOBALS['IRC']->Message($tmp[1],'---------------------');
			$GLOBALS['IRC']->Message($tmp[1],'Insert time or cron definition:');
			
			$this->Data['trigger_regexp'] = '^:'.$tmp[1].'![^ ]+ PRIVMSG '.$GLOBALS['IRC']->GetNick().' :?';
			$GLOBALS['Log']->Debug('trigger> '.$this->Data['trigger_regexp']); 
			$this->SetTTL(time()+180);
			$this->AddTrigger('help_insertTime',$this->Data['trigger_regexp'].'[ ]*\.help');
			$this->AddTrigger('insertTime',$this->Data['trigger_regexp']);    	
	    }
	    else
	    {
	    	$GLOBALS['IRC']->Reply('Unknown parameter');
	    }
	  }
	  else
	  {
	  		$GLOBALS['IRC']->Reply('Wrong way');
	  }
	}
	else
	{
		$GLOBALS['IRC']->Reply('Internal error');
	}
	
///*
</code>
<code help_insertTime>
	$GLOBALS['IRC']->Reply('Here insert time or cron definition. Time you can insert in format: h:m[:s] (examples: 8:03, 23:4, 07:22:11). Cron information in format: cron(s i H j n Y w). (examples: 0 00 15 * * * 1-5 )');
	$this->DestroyAllTriggers();
	$this->SetTTL(time()+180);
	$this->AddTrigger('help_insertTime',$this->Data['trigger_regexp'].'[ ]*\.help');
	$this->AddTrigger('insertTime',$this->Data['trigger_regexp']); 
</code>
<code insertTime>
	if (eregi($this->Data['trigger_regexp'].'(.*)$',$GLOBALS['IRC']->GetLastLine(),$tmp))
	{
		if (eregi('([0-9]?[0-9]):([0-9]?[0-9])(:[0-9]?[0-9])?',$tmp[1]))
		{
			// time
			$GLOBALS['IRC']->Reply('Time format');
		}
		elseif (eregi('cron\((.*)\)',$tmp[1]))
		{
			$GLOBALS['IRC']->Reply('Cron format');
		}
		else
		{
			$GLOBALS['IRC']->Reply('Wrong format, try again or use .help');
			$this->DestroyAllTriggers();
			$GLOBALS['Log']->Debug('trigger> '.$this->Data['trigger_regexp']); 
			$this->SetTTL(time()+180);
			$this->AddTrigger('help_insertTime',$this->Data['trigger_regexp'].'[ ]*\.help');
			$this->AddTrigger('insertTime',$this->Data['trigger_regexp']); 
		}
	}
	else 
	{
		$GLOBALS['IRC']->Reply('AddTimer module error');
	}
	//$GLOBALS['Cron']->Add(time()+10,'events/timer','n/a',$d);
	$this->DestroyAllTriggers();
</code>
*/?>